package java8_24;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class DogTest {
    public static void main(String[] args) {
        Dog.printLegs();
        Dog d=new Dog("大黄","灰");
        d.numOfLegs=3;
        //Dog.numOfLegs=3;//类名直接访问
        d.show();

        System.out.println(">>>>>>>>>>>>>>>>>>>");
        Dog d2=new Dog("杰克","白");
        d2.show();

        Scanner sc=new Scanner(System.in);
        int []ar={1,2,5};
        Arrays.sort(ar);

        //构造方法私有的，禁止创建这个类的对象
        // System st=new System();
    }
}
